home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000217-20000824
/
000305_news@columbia.edu _Tue May 16 11:07:51 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id LAA11950
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 16 May 2000 11:07:50 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA08464
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 16 May 2000 11:07:49 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id LAA01118
for kermit.misc@watsun.cc.columbia.edu; Tue, 16 May 2000 11:04:44 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: translate produces rubbish
Date: 16 May 2000 11:04:26 -0400
Organization: Columbia University
Message-ID: <8fro1q$7jb@watsun.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <8frfqo$o34$1@newsmaster.cc.columbia.edu>,
Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
: In article <1T8U4.104$kw4.3981@read2.inet.fi>,
: ralf.strandell <ralf.strandell@silja.com> wrote:
: : I'm using C-Kermit 7.0.196 for Unixware
: : on an Unixware 7.0.1 server.
: :
: : I'm trying to convert files from ascii to cp850
: : (from unix to dos) but when I give the command:
: : "translate testfile1 ascii cp850 testfile2"
: : then testfile2 contains nothing sane.
: :
: : Examples: let's convert from ascii to ascii (identical)
:
First off, the command doesn't make sense -- if you translate
a file from ASCII to CP850, the result would be identical, since
ASCII *is* the left half of CP850. You probably mean to convert
from one 8-bit character set to another, e.g.:
translate testfile1 latin1 cp850 testfile2
Be sure to identify the character set of the original file correctly.
: : file1 is:
: :
: : abc
: : def
: : 123
: : ghi
: :
: : after "translate file1 ascii ascii file2" I get file2:
: :
: : b
: : e
: : 2
: : h
: :
: : What happened with the rest of the characters?
: :
: : If I convert from ascii to cp850 ( or from ascii to latin1 )
: : then all characters in the output file will be question marks.
: :
: : What's wrong?
: :
: : I need this conversion utility because not all data transfer
: : applications know how to translate character sets. (kermit does, but
: : some files must be moved to directories that are mounted over network
: : and the mv command does not convert anything... )
:
: This is a confirmed bug that occurs on all Little Endian based
: architectures such as Intel X86 processors.
:
Funny nobody noticed it in six months of beta testing :-)
The problem is new to C-Kermit 7.0 and K95 1.1.20; it happened in the
course of adding the new Unicode features.
We'll be putting up a new test version shortly that fixes this and a few
other bugs and that have some new features.
In the meantime, you can work around this problem as follows:
set file ucs byte-order big-endian
translate file1 latin1 ascii file2
set file ucs byte-order little-endian
- Frank